/** WARNING: DON'T EDIT THIS FILE */
/** WARNING: DON'T EDIT THIS FILE */
/** WARNING: DON'T EDIT THIS FILE */

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";

function getPlugins() {
  const plugins = [react(), tsconfigPaths()];
  return plugins;
}

export default defineConfig({
  // 添加base配置，确保在Gitee Pages上正确加载资源
  // 注意：需要将'仓库名'替换为您在Gitee上的实际仓库名称
  base: '/fitness/',
  plugins: getPlugins(),
});
